<template>
    <div style="background-color: #f4f4f4">
        <div>
            <el-card style="height: 100%">
                <el-alert title="添加作品" type="info" center show-icon :closable="false"></el-alert>
                <form-pusher/>

            </el-card>
        </div>
    </div>


</template>

<script>
    import FormPusher from "../../components/formPusher";

    export default {
        name: "UploadWork",
        components: {FormPusher},
        data() {
            return {
                activeIndex: 0,
                pageNum: 1,
                pageSize: 5,
                addForm: {},
                addFormRules: {
                    workName: [{required: true, message: '请输入作品名称', trigger: 'blur'}],
                    selectedKeys: [{required: true, message: '请选择作品分类', trigger: 'change'}],
                    username: [{required: true, message: '请输入发布人', trigger: 'blur'}]
                },
                selectedKeys: [],
                parentCateList: [],
                cascaderProps: {
                    value: 'categoryId',
                    label: 'categoryName',
                    children: 'children'
                },
                fileList2: [],
                fileURL: this.$store.state.Host + '/img/worksFile/上传.png',
                posterURL: this.$store.state.Host + '/img/worksFile/上传.png',
                workFilename:'',
                poster:''
            }
        },
        methods: {
            uploadPoster(file) {
                this.poster = file.raw
            },
            uploadWorkFile(file) {
               this.workFilename = file.raw
            },


        },
    }
</script>

<style scoped>


    /deep/ .el-table {
        font-size: 12px;
    }


    /deep/ .el-step {
        margin: 15px 0;
    }

    /deep/ .el-step__title {
        font-size: 13px;
    }

    /deep/ .el-form-item__label {
        white-space: pre-line;
    }

    /deep/ .el-upload__input {
        visibility: hidden !important;
    }
</style>
